package com.wj.facade;

import com.wj.facade.impl.LetterProcessImpl;

/**
 * @author WangJin
 * @version 1.0
 * @date 2022/2/18 11:20
 */
public class Client {
    public static void main(String[] args) {

        //创建一个处理信件的过程
        LetterProcess letterProcess = new LetterProcessImpl();

        //开始写信
        letterProcess.writeContext("Hello,It's me,do you know who I am? I'm your old lover. I'd like to....");

        //开始写信封
        letterProcess.fillEnvelope("Happy Road No. 666,God Province,Heaven");

        //把信放到信封里，并封装好
        letterProcess.letterInotoEnvelope();

        //跑到邮局把信塞到邮箱，投递
        letterProcess.sendLetter();

    }
}
